package demo.jlistincheckbox;

/**
 * Created by IntelliJ IDEA.
 * User: alex
 * Date: 5/13/11
 * Time: 11:38 PM
 * To change this template use File | Settings | File Templates.
 */
public class UserObject {
    private boolean isSelected;
    private String nameRu;
    private int age;

    UserObject(boolean selected, String nameRu, int age) {
        isSelected = selected;
        this.nameRu = nameRu;
        this.age = age;
    }

    public boolean isSelected() {
        return isSelected;
    }

    public void setSelected(boolean selected) {
        isSelected = selected;
    }

    public String getNameRu() {
        return nameRu;
    }

    public void setNameRu(String nameRu) {
        this.nameRu = nameRu;
    }

    public int getAge() {
        return age;
    }

    public void setAge(int age) {
        this.age = age;
    }

    @Override
    public String toString() {
        return nameRu;
    }
}
